<%@ page language="java" import="java.util.*,com.ce.workflow.work.dao.po.WorkflowMan,com.ce.framework.util.DateUtil" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/source/";  //应用的地址名
String modifyActionName = path+request.getAttribute("REQUEST_PATH")+"?op=savejs";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>流程图形界面</title>
     <style type="text/css">   
.left {   
    float:left;   
    display:inline;   
    width:45%;
}   
.center{   
    float:left;   
    display:inline;   
    width:30%;
}   
.right{   
    float:right;   
    display:inline;   
    width:25%;
}   
</style>  
    <script language="javascript" src="<%=path %>/jslib/flowpic.js"></script>
<script type="text/javascript">
<!--
           $(function(){
        	   $('#flow_show').drawFlow({rowSteps:4,steps:<%=request.getAttribute("flowpic") %>});
        	   $('#flows').css({height:$('#t1').height(),top:$('#flow_show').offset().top+$('#flow_show').height(),left:$('#flow_show').offset().left,overflow:auto});
           });
//-->
</script>
  </head>
  
  <body  class="easyui-layout" bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >

  <div  data-options="region:'north',border:false" id="flow_show" style="padding:10px;height:150px;overflow:hidden;"></div>  
  <div id="flows"  class="div_height_auto" data-options="region:'center',border:false" fit="true" plain="true" style="width:800px;padding:10px;overflow:auto;">
  <%
  List<WorkflowMan> mans =(List<WorkflowMan>)request.getAttribute("flows");
  int i=0;
  if(mans!=null&&mans.size()>0){
  %>
  <div style="float:left">
  	<table id="t1" class="table_">
  	<thead><th style="width:20px">序号</th><th style="width:40px">操作人</th><th style="width:70px">操作时间</th><th style="width:100px">操作</th></thead>
  	<%
  		for(;i<mans.size();i++){
  			if(i==10)
  				break;
  	%>
  	<tr><td><%=i+1 %></td><td><%=mans.get(i).getVcPromanName() %></td><td><%=DateUtil.format(mans.get(i).getDtDate(),"MM-dd HH:mm") %></td><td><%=mans.get(i).getVcAdvance() %></td></tr>
  	<%
  		}
  	%>
  	</table>
  	</div>
  	<%
  	if(i<mans.size()){
  		%>
  		<div>
  		<table id="t1" class="table_">
  	<thead><th style="width:20px">序号</th><th style="width:40px">操作人</th><th style="width:70px">操作时间</th><th style="width:100px">操作</th></thead>
  		<%
  		for(;i<mans.size();i++){
  			if(i==14)
  	%>
  	<tr><td><%=i+1 %></td><td><%=mans.get(i).getVcPromanName() %></td><td><%=DateUtil.format(mans.get(i).getDtDate(),"MM-dd HH:mm") %></td><td><%=mans.get(i).getVcAdvance() %></td></tr>
  	<%
  		}
  	%>
  	</table>
  	</div>
  	<%
  	}
  	if(i<mans.size()){
  		%>
  		<div>
  		<table class="table_">
  	<thead><th style="width:20px">序号</th><th style="width:40px">操作人</th><th style="width:70px">操作时间</th><th style="width:100px">操作</th></thead>
  		<%
  		for(;i<mans.size();i++){
  			
  	%>
  	<tr><td><%=i+1 %></td><td><%=mans.get(i).getVcPromanName() %></td><td><%=DateUtil.format(mans.get(i).getDtDate(),"MM-dd HH:mm") %></td><td><%=mans.get(i).getVcAdvance() %></td></tr>
  	<%
  		}
  	%>
  	</table>
  	</div>
  	
  	<%  	
  	}
  }
  	%>
  </div>
  	
  </body>
</html>






